package com.homejoy.system.domain;

import com.homejoy.common.annotation.Excel;
import com.homejoy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房源图片对象 homejoy_property_image
 * 
 * @author homeJoy
 * @date 2025-11-08
 */
public class HomejoyPropertyImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    private Long imageId;

    /** 房源ID */
    @Excel(name = "房源ID")
    private Long propertyId;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String imageUrl;

    /** 图片类型(1:封面 2:客厅 3:卧室 4:厨房 5:卫生间 6:阳台 7:环境) */
    @Excel(name = "图片类型(1:封面 2:客厅 3:卧室 4:厨房 5:卫生间 6:阳台 7:环境)")
    private Integer imageType;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortOrder;

    /** 是否主图 */
    @Excel(name = "是否主图")
    private Integer isMain;

    public void setImageId(Long imageId) 
    {
        this.imageId = imageId;
    }

    public Long getImageId() 
    {
        return imageId;
    }

    public void setPropertyId(Long propertyId) 
    {
        this.propertyId = propertyId;
    }

    public Long getPropertyId() 
    {
        return propertyId;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setImageType(Integer imageType) 
    {
        this.imageType = imageType;
    }

    public Integer getImageType() 
    {
        return imageType;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setIsMain(Integer isMain) 
    {
        this.isMain = isMain;
    }

    public Integer getIsMain() 
    {
        return isMain;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("imageId", getImageId())
            .append("propertyId", getPropertyId())
            .append("imageUrl", getImageUrl())
            .append("imageType", getImageType())
            .append("sortOrder", getSortOrder())
            .append("isMain", getIsMain())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
